//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.hafu.service;

import com.hafu.dao.KhInfoDao;
import com.hafu.model.KhInfo;
import java.util.ArrayList;

public class KhInfoService {
    private KhInfoDao khInfoDao = new KhInfoDao();

    public KhInfoService() {
    }

    public Boolean addKhInfo(KhInfo kh) {
        Boolean aBoolean = this.khInfoDao.addKhInfo(kh);
        return aBoolean;
    }

    public Boolean deleteKhInfo(int id) {
        Boolean aBoolean = this.khInfoDao.deleteKhInfo(id);
        return aBoolean;
    }

    public ArrayList<KhInfo> getKhInfoByName(KhInfo kh) {
        ArrayList<KhInfo> khInfos = this.khInfoDao.getKhInfoByName(kh);
        return khInfos;
    }

    public Boolean updateKhInfo(KhInfo kh) {
        Boolean aBoolean = this.khInfoDao.updateKhInfo(kh);
        return aBoolean;
    }
}
